import Vue from 'vue'
import Router from 'vue-router'
// import Home from '@/views/Home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component:require('@/views/Home').default
    },
    {
      path: '/AboutUs:id',
      name: 'AboutUs',
      component:require('@/views/AboutUs').default
    },
    {
      path: '/ProductDisplay:id',
      name: 'ProductDisplay',
      component:require('@/views/ProductDisplay').default
    },
    {
      path: '/Partners:id',
      name: 'Partners',
      component:require('@/views/Partners').default
    },
    {
      path: '/ContactUs:id',
      name: 'ContactUs',
      component:require('@/views/ContactUs').default
    },
  ],
  scrollBehavior (to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    } else {
      return { x: 0, y: 0 }
    }
  }
})
